﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace SqlTest
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            TeamService.Access.TeamServeiceAccessor tsa = new TeamService.Access.TeamServeiceAccessor();
            //if(!tsa.AddMember(new TeamService.Access.Member()
            //{
            //    Name = "罗应良",
            //    Phone = "15676891064",
            //    QQ = "731984870",
            //    Title = "小组组长"
            //}))
            //{
            //    throw new Exception();
            //}
            var r = tsa.SelectMember();
            int i = 0;
            foreach(var n in r)
            {
                i++;
            }
            if (i != 1)
            {
                throw new Exception();
            }
        }
    }
}
